#include <iostream>
using namespace std;
 
int main()
{
	cout<<"Content-type: text/html"<<endl<<endl;
	cout<<"<html><body>"<<endl;
	cout<<"<h1>Hello World!</h1>"<<endl;
	cout<<"This is HTML formatted Hello World C++ CGI"<<endl;
	cout<<"</body></html>"<<endl;
 
	return 0;
}